;; git@github.com:ocaml/tuareg.git

;; (add-to-list 'load-path "/usr/src/packages/emacs/tuareg")

;; (require 'tuareg)
(load "tuareg-site-file")

(push "~/.opam/default/share/emacs/site-lisp" load-path) ; directory containing merlin.el
;; (setq merlin-command "<BIN_DIR>/ocamlmerlin")  ; needed only if ocamlmerlin not already in your PATH
(autoload 'merlin-mode "merlin" "Merlin mode" t)
(add-hook 'tuareg-mode-hook #'merlin-mode)
(setq merlin-ac-setup 'easy)

(add-to-list 'auto-mode-alist '("dune" . lisp-mode))
